<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/inv/invcommodityinfo.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
		    $('.tree li:has(ul)').addClass('parent_li').find(' > span').attr('title', '');
		    $('.tree li.parent_li > span').on('click', function (e) {
		        var children = $(this).parent('li.parent_li').find(' > ul > li');
		        if (children.is(":visible")) {
		            children.hide('fast');
		            $(this).attr('title', '').find(' > i').addClass('icon-plus-sign').removeClass('icon-minus-sign');
		        } else {
		            children.show('fast');
		            $(this).attr('title', '').find(' > i').addClass('icon-minus-sign').removeClass('icon-plus-sign');
		        }
		        e.stopPropagation();
		    });
		}
	});
});
</script>
<div><h3>商品信息管理</h1></div>
<form id="queryInvCommodityInfoFrom">
<table class="search_term_table">
		<tr>
			<th style="width:60px;">名称</th>
			<td style="width:120px;">
				<input class="form-control"  type="text" id="keyWordName" name="name"  style="width:200px;"/>
			</td>
		    <td style="text-align:right;">
		   	    <button class="btn btn-info" style="display: inline;" onclick="javascript:query_InvCommodityInfo(); return false;"><i class="icon-search"></i> 查 询 </button>
				<button class="btn btn-success" onclick="javascript:edit_InvCommodityInfo(); return false;"><i class="icon-file"></i> 添加节点</button>
			</td>
		</tr>
</table>
<h5 class="title" >按钮说明：
	<img src="${contextPath}images/tree/img_614.gif" /> 编辑&nbsp;&nbsp;
	<img src="${contextPath}images/tree/img_12.gif" /> 新增子项&nbsp;&nbsp;
	<img src="${contextPath}images/tree/img_613.gif" /> 删除
</h5>
</form>
<div class="tree well" id="resultDiv">${tree}</div>
